package cn.kimming.system.controller;

import cn.kimming.common.util.Result;
import cn.kimming.common.vo.CheckInfoVO;
import cn.kimming.common.vo.EmployeeVO;
import cn.kimming.service.ICheckInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 刘铭轩
 * date 2021-06-23
 */

@RestController
@RequestMapping("/checkinfo")
public class CheckInfoController {
    @Autowired
    private ICheckInfoService checkInfoService;
    @GetMapping
    public Result findAll(String keyword) {
        List<CheckInfoVO> list = checkInfoService.findVOByKeyword(keyword);
        return new Result(true, "查询成功").addData("list", list);
    }
}
